<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="title" content="${video.title}">
<meta name="description" content="${video.title}">
<meta name="keywords" content="video hot, ${video.title}">
<meta property="og:url" content="http://trollvl.com/video/${video.id}">
<meta property="og:title" content="${video.title}">
<meta property="og:description" content="${video.title}">
<meta property="og:image" content="http://i.ytimg.com/vi/${video.youtubeId}/${video.thumbnail}">
<meta property="og:site_name" content="Trollvl.com">
<meta property="fb:app_id" content="299999716845708">
<meta property="og:type" content="video">
<link rel="shortcut icon" href="/resources/images/favicon.ico"
	type="image/x-icon">
<link rel="icon" href="/resources/images/favicon.ico"
	type="image/x-icon">
<script src="/resources/js/jquery.1.9.1.min.js"></script>
<script src="/resources/js/bootstrap.min.js"></script>
<script src="/resources/js/videoFunction.js"></script>
<title>${video.title}</title>
<script>
	$(function() {
		load_hot_videos();
	});
</script>
</head>
<body>
	<tiles:insertDefinition name="defaultTemplate2">
		<tiles:putAttribute name="body">
			<div class="mainVideo">
				<div class="leftVideo">
					<div class="videoDetails">
						<div class="videoFrame">
							<iframe width="728" height="410"
								src="https://www.youtube.com/embed/${video.youtubeId}"
								frameborder="0" allowfullscreen></iframe>
						</div>
						<div class="info">
							<h1>${video.title}</h1>
							<div class="stats">
								<div class="numbers">
									<span class="views" style="padding-right: 10px"><fmt:formatNumber pattern="#,###,##0" value="${video.viewNumber}"/></span>
									<span class="comments"><fmt:formatNumber pattern="#,###,##0" value="${video.commentNumber}"/></span>
								</div>
								<div class="fb-like" data-href="/video/${video.id}"
									data-width="90" data-layout="button_count" data-action="like"
									data-show-faces="false" data-share="true"></div>
								<div class="clear"></div>
							</div>
						</div>
						<div class="commentContainer">
							<h4>Bình luận</h4>
							<div class="fb-comments"
								data-href="http://trollvl.com/video/${video.id}" data-width="708"
								data-colorscheme="light"></div>
						</div>
					</div>
				</div>
				<div class="rightVideo">
				<div id="hot-video"></div>
				</div>
			</div>
		</tiles:putAttribute>
	</tiles:insertDefinition>
</body>
</html>